home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 5 / Example 5.6 / city.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-06-28  |  382 b   |  27 lines

  1. #ifndef city_h
  2. #define city_h
  3.  
  4. #include <vector>
  5. #include "intpoint.h"
  6. #include "object.h"
  7. #include "camera.h"
  8.  
  9. #define TILE_SIZE 13.99f
  10.  
  11. class CITY
  12. {
  13.     friend class APPLICATION;
  14.     public:
  15.         CITY();
  16.         void Init(INTPOINT _size);
  17.         void Render(CAMERA *cam);
  18.         D3DXVECTOR3 GetCenter();
  19.  
  20.     private:
  21.  
  22.         std::vector<OBJECT> m_objects;
  23.         INTPOINT m_size;
  24. };
  25.  
  26.  
  27. #endif